package com.yqg.manage.service;

import com.yqg.manage.controller.dto.FileDTO;
import com.yqg.manage.controller.dto.UpLoadDTO;
import com.yqg.manage.entity.RelatedFile;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * IRelatedFileService 服务类
 * @author suzhuang
 * @since 2023-07-05
 */
public interface IRelatedFileService extends IService<RelatedFile> {


    String upload(UpLoadDTO upLoadDTO) throws IOException;

    RelatedFile[] getCaseList(String caseno);


    FileDTO uploadSign(MultipartFile file);

    /**
     * 保存PDF文件
     * @param file 文件
     * @return 是否保存成功
     */
    Boolean uploadPDF(MultipartFile file, Long id);
}
